package com.unittec.zk.provider.common;

import java.text.DecimalFormat;

import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.unittec.zk.sdk.root.common.AmountConstants;

/**
 * @program: zk-merger-parent
 * @description:
 * @author: djj
 * @create: 2019-06-26 15:43
 **/

public class DoubleUtils {
    public static String getDoubleStr(Double value) {
        String ling = AmountConstants.ZEROSTR;
        if (ObjectUtils.isNotNull(value)) {
            DecimalFormat df = new DecimalFormat(ling);
            return df.format(value) + "";
        }
        return ling;
    }

}
